# 递归添加obs_resource目录下所有的cpp文件
file(GLOB_RECURSE obs_resource_srcs *.cpp)

add_library(obs_resource_obj
    OBJECT
    ${obs_resource_srcs}
)

target_link_directories(obs_resource_obj
    INTERFACE
    ${MODULE_PLATFORM_PATH}/KMCv3_infra_rel/lib
)

target_include_directories(obs_resource_obj
    PRIVATE
    ${OBS_ROOT_PATH}/src
    ${OBS_ROOT_PATH}/src/common
    ${OBS_ROOT_PATH}/src/common/constant

    ${OPENSRC_THRIFT_INC_PATH}
    ${OPENSRC_THRIFT_INC_PATH}/thrift

    ${OPEN_SRC_PATH}/jsoncpp_rel/include

    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc

    ${FRAMEWORK_INC_PATH}/utils

    ${MODULE_ROOT_PATH}/src/log
    
    ${MODULE_PLATFORM_PATH}/KMCv3_infra_rel/include
)

target_link_libraries(obs_resource_obj
    PRIVATE
    common_dep
    kmcv3
)
